#include<iostream>
#include<vector>

using namespace std;

class Base
{
private:
	vector<int> vec;
public:
	void input(const int data);
	void output();
	void del_element(const int num);
	int size();
	bool isempty();
};

void Base::input(const int data)
{
	this->vec.push_back(data);
}

void Base::output()
{
	for (auto it : this->vec)
	{
		cout << it << endl;
		//cout << sizeof(it) << endl;
	}
	//vector<int>::iterator it;
	//for (it = this->vec.begin(); it != this->vec.end(); it++)
	//	cout << *it << endl;
}

void Base::del_element(const int num)
{
	auto it = this->vec.begin();
	for (; it != vec.end(); it++)
	{
		if (*it == num)
			this->vec.erase(it);
	}
}

int Base::size()
{
	return this->vec.size();
}

bool Base::isempty()
{
	return this->vec.empty();
}

int main(void)
{
	Base base;
	const int val = 9;
	const int data = 10;
	base.input(val);
	base.input(data);
	if (!base.isempty())
	{
		base.del_element(val);
	}
	else if (base.isempty())
	{
		cout << "empty" << endl;
	}
	base.output();
	return 0;
}